home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / pmake / lst / Makefile.bak < prev    next >
Encoding:
Makefile  |  1989-11-15  |  3.5 KB  |  117 lines

  1. #
  2. # Standard Makefile for libraries
  3. # LNAME is the name of the library.
  4. #
  5. LNAME        = lst
  6. LIBRARY        = lib$(LNAME).a
  7. PLIBRARY    = lib$(LNAME)_p.a
  8. LLIBRARY    = llib-l$(LNAME)
  9.  
  10. .PATH.h        : ../include
  11.  
  12. #include    <makelib.mk>
  13. #include    <po.mk>
  14.  
  15. HDRS        = lst.h lstInt.h
  16. OBJS        = lstAppend.o lstAtEnd.o lstAtFront.o lstConcat.o \
  17.           lstClose.o lstCur.o lstDatum.o lstDeQueue.o \
  18.          lstDestroy.o lstDupl.o lstEnQueue.o lstFake.o lstFind.o \
  19.           lstFindFrom.o lstFirst.o lstForEach.o lstForEachFrom.o \
  20.         lstIndex.o lstInit.o lstInsert.o lstIsAtEnd.o lstIsEmpty.o \
  21.         lstLast.o lstLength.o lstMember.o lstMove.o lstNext.o \
  22.         lstOpen.o lstPred.o lstPrev.o lstRemove.o lstReplace.o \
  23.         lstSetCirc.o lstSucc.o
  24.  
  25. SRCS        = lstAppend.c lstAtEnd.c lstAtFront.c lstConcat.c \
  26.              lstClose.c lstCur.c lstDatum.c lstDeQueue.c \
  27.           lstDestroy.c lstDupl.c lstEnQueue.c lstFake.c lstFind.c \
  28.          lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \
  29.         lstIndex.c lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c \
  30.         lstLast.c lstLength.c lstMember.c lstMove.c lstNext.c \
  31.         lstOpen.c lstPred.c lstPrev.c lstRemove.c lstReplace.c \
  32.         lstSetCirc.c lstSucc.c
  33.  
  34. MACHFLAGS    =
  35.  
  36. CFLAGS        = -g $(MACHFLAGS) $(.INCLUDES)
  37. AFLAGS        = $(MACHFLAGS)
  38. LNFLAGS        = -bzh $(.INCLUDES)
  39. COFLAGS     =
  40.  
  41. CC        = gcc -O
  42.  
  43. PRINT        = pr
  44. LINT        = lint
  45.  
  46. .DEFAULT    :
  47.     co $(COFLAGS) $<
  48.  
  49. .END        : .NOEXPORT
  50.  
  51. all        : library lint 
  52.  
  53. $(LIBRARY)    : $(LIBRARY)($(OBJS)) .NOEXPORT            MAKELIB
  54. $(PLIBRARY)    : $(PLIBRARY)($(OBJS:S/.o$/.po/g)) .NOEXPORT    MAKELIB
  55.  
  56. $(LLIBRARY).ln    : $(SRCS) $(HDRS) .NOEXPORT
  57.     @echo "Creating $(LLIBRARY).ln..."
  58.     @$(LINT) -C$(LNAME) $(LNFLAGS) $(.ALLSRC:M*.c)
  59.  
  60. install        : all
  61.  
  62. library        : $(LIBRARY)
  63.  
  64. lint        : $(LLIBRARY).ln
  65.  
  66. tags        : $(HDRS) $(SRCS)
  67.     @ctags $(HDRS) $(SRCS)
  68.  
  69. clean        ::
  70.     rm -f *.o *.po liblst.a liblst_p.a llib-llst.ln
  71.  
  72. package        :
  73.     if [ ! -d $(PKGDIR) ]; then \
  74.         mkdir $(PKGDIR); \
  75.     fi
  76.     cp $(SRCS) $(HDRS) Makefile makefile $(PKGDIR)
  77.  
  78. depend        : $(SRCS) 
  79.     makedepend -p -s"### DO NOT DELETE THIS LINE" $(.INCLUDES) \
  80.         -f makefile.dist $(SRCS)
  81.     
  82. ### DO NOT DELETE THIS LINE
  83.  
  84. lstAppend.o: lstInt.h lst.h ../include/sprite.h
  85. lstAtEnd.o: lstInt.h lst.h ../include/sprite.h
  86. lstAtFront.o: lstInt.h lst.h ../include/sprite.h
  87. lstConcat.o: lstInt.h lst.h ../include/sprite.h
  88. lstClose.o: lstInt.h lst.h ../include/sprite.h
  89. lstCur.o: lstInt.h lst.h ../include/sprite.h
  90. lstDatum.o: lstInt.h lst.h ../include/sprite.h
  91. lstDeQueue.o: lstInt.h lst.h ../include/sprite.h
  92. lstDestroy.o: lstInt.h lst.h ../include/sprite.h
  93. lstDupl.o: lstInt.h lst.h ../include/sprite.h
  94. lstEnQueue.o: lstInt.h lst.h ../include/sprite.h
  95. lstFind.o: lstInt.h lst.h ../include/sprite.h
  96. lstFindFrom.o: lstInt.h lst.h ../include/sprite.h
  97. lstFirst.o: lstInt.h lst.h ../include/sprite.h
  98. lstForEach.o: lstInt.h lst.h ../include/sprite.h
  99. lstForEachFrom.o: lstInt.h lst.h ../include/sprite.h
  100. lstIndex.o: lstInt.h lst.h ../include/sprite.h
  101. lstInit.o: lstInt.h lst.h ../include/sprite.h
  102. lstInsert.o: lstInt.h lst.h ../include/sprite.h
  103. lstIsAtEnd.o: lstInt.h lst.h ../include/sprite.h
  104. lstIsEmpty.o: lstInt.h lst.h ../include/sprite.h
  105. lstLast.o: lstInt.h lst.h ../include/sprite.h
  106. lstLength.o: lstInt.h lst.h ../include/sprite.h
  107. lstMember.o: lstInt.h lst.h ../include/sprite.h
  108. lstMove.o: lstInt.h lst.h ../include/sprite.h
  109. lstNext.o: lstInt.h lst.h ../include/sprite.h
  110. lstOpen.o: lstInt.h lst.h ../include/sprite.h
  111. lstPred.o: lstInt.h lst.h ../include/sprite.h
  112. lstPrev.o: lstInt.h lst.h ../include/sprite.h
  113. lstRemove.o: lstInt.h lst.h ../include/sprite.h
  114. lstReplace.o: lstInt.h lst.h ../include/sprite.h
  115. lstSetCirc.o: lstInt.h lst.h ../include/sprite.h
  116. lstSucc.o: lstInt.h lst.h ../include/sprite.h
  117.